package com.xmh.datasource.demo.content;

public class SqlDataSourceContextHolder {

    private static final InheritableThreadLocal<String> inheritableThreadLocal = new InheritableThreadLocal<>();

    public static void set(String dataSource) {
        inheritableThreadLocal.set(dataSource);
    }

    public static String get() {
        return inheritableThreadLocal.get();
    }

    public static void clear() {
        inheritableThreadLocal.remove();
    }
}
